package wang.day6;

public class lianxi2 {


    public static void main(String[] args) {
        int[] arr=new int[5];
        int[] arrr={11,22,45,78,69};
        for (int i = 0; i < arrr.length; i++) {
            arr[i]=arrr[i];

            if(i==0){
                System.out.print("["+arr[i]+",");
            }else if (i==arr.length-1){
                System.out.print(arr[i]+"]");

            }
            else {
                System.out.print(arr[i]+",");
            }
        }
    }

}
